package com.xx.hdfsFx.promptStage;

import javafx.scene.control.Button;

public class DeletePrompt {
    public final Button button;
    private PromptPaneTool promptPaneTool;

    public DeletePrompt(String info, String info1) {
        promptPaneTool = new PromptPaneTool();
        promptPaneTool.addTitle("刪除");
        promptPaneTool.addInfo("", info);
        promptPaneTool.addInfo("", info1);
        button = promptPaneTool.addButton("删除", "取消");
        promptPaneTool.initStage(630, 300);
    }

    public DeletePrompt(String info) {
        this(info, "");
    }

    public void showStage() {
        promptPaneTool.nowStage.show();
    }

    public void closeStage() {
        promptPaneTool.nowStage.close();
    }
}
